package net.pulseproject.router.modules.misc;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;

import net.pulseproject.router.modules.useable.MidiTransmitterModule;

public class RoutingTable {
	
	private final Collection<MidiTransmitterModule> transmitterModules;

	public RoutingTable(final Collection<MidiTransmitterModule> transmitterModules) {
		if(transmitterModules == null) { throw new IllegalArgumentException("transmitterModules == null"); }
		this.transmitterModules =
			Collections.unmodifiableList(new ArrayList<MidiTransmitterModule>(transmitterModules));
	}

	public final Collection<MidiTransmitterModule> getTransmitterModules() {
		return this.transmitterModules;
	}
	
}
